﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Baosight.ZNH.ZMCommon;
using Baosight.Platform.Core.UI.Controls;

namespace Baosight.ZNH.ZMCL.UI
{
    /// <summary>
    /// 待处理三违页面和已处理三违标签页
    /// </summary>
    /// Title:ZMCL60
    /// Copyright:Baosight Software LTD.co Copyright (c) 2011
    /// Company:上海宝信软件股份有限公司
    /// Author: 高强
    /// Version: 1.0
    /// History:
    ///       2011-06-24  高强   [创建]
    ///  
    public partial class ZMCL60 : EFViewCmes
    {
        public ZMCL60()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 页面初始化操作
        /// </summary>
        /// <param name="initData"></param>
        public override void Initialize(Baosight.Platform.Core.EIInfo initData)
        {
            base.Initialize(initData);

        }

        /// <summary>
        /// 页签改变加载不同的页面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void EFTab_SelectionChanged(object sender, RoutedEventArgs e)
        {
            EFTab tab = sender as EFTab;
            if (tab.SelectedItem != null)
            {
                EFTabItem item = tab.SelectedItem as EFTabItem;
                item.Content = null;
                if (tab.SelectedItem.Equals(this.pendingTernate))
                {
                    this.pendingTernate.LoadView<EFTabItem>("ZMCL61");//加载待处理三违页面
                }
                else if (tab.SelectedItem.Equals(this.processedTernate))
                {
                    this.processedTernate.LoadView<EFTabItem>("ZMCL62");//加载已处理三违页面
                }
            }
        }
    }
}
